package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 报警设置表 实体类
 * 表名：ra_alarm_config
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "ra_alarm_config")
public class RaAlarmConfig implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 报警配置类型（1、查看报警图 2、抑制报警 3、隐藏报警）
     * 默认值: 1
     */
    @Column(name = "alarm_config_type", nullable = false)
    private Byte alarmConfigType;
    
    /**
     * 配置JSON
     */
    @Column(name = "config_json", nullable = false, length = 65535)
    private String configJson;
    
    /**
     * 配置参数
     */
    @Column(name = "config_param", nullable = false, length = 128)
    private String configParam;
    
    /**
     * 租户主键
     */
    @Column(name = "tenant_id")
    private Integer tenantId;
    
    /**
     * 是否删除（0、否1、是）
     * 默认值: 0
     */
    @Column(name = "is_del", nullable = false)
    private Byte isDel;
    
    /**
     * 创建时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "create_time", nullable = false)
    private java.time.LocalDateTime createTime;
    
    /**
     * 更新时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "update_time", nullable = false)
    private java.time.LocalDateTime updateTime;
    
    @Override
    public String toString() {
        return "RaAlarmConfig{" +
            "id=" + id +
            ", alarmConfigType=" + alarmConfigType +
            ", configJson=" + configJson +
            ", configParam=" + configParam +
            ", tenantId=" + tenantId +
            ", isDel=" + isDel +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
        '}';
    }
} 